package com.boscloud.controller;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.boscloud.pojo.ProductionVerifyBucket;
import com.boscloud.pojo.PostGoodMvtResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import com.boscloud.service.ProductionVerifyBucketService;

import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@CrossOrigin //允许跨域
@RestController
public class ProductionVerifyBucketController {
    @Autowired
    private ProductionVerifyBucketService ProductionVerifyBucket;
    @PostMapping("/ProductionVerifyBucket")//获取桶号条码扫描信息
    public List<ProductionVerifyBucket> getProductionVerifyBucket(@RequestBody Map<String, Object> params) throws IOException {
        Map<String, String> headers = new HashMap<String, String>();
        headers.put("PORTID","ITMS010");//接口ID
        return ProductionVerifyBucket.getProductionVerifyBucket(params,headers);
    }
}
